﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using IDML.BusinessObject;



namespace IDML.Web
{
    public class IDMLSession
    {
          /// <summary>
        /// IDML USER
        /// </summary>
        private const string IDMLUSER = "IDMLUser";
     
        /// <summary>
        /// Gets or sets User Session Object
        /// </summary>
        /// <value>
        /// The user.
        /// </value>
        public UserBO User
        {
            get
            {
                if (HttpContext.Current.Session[IDMLUSER] != null)
                {
                    return (UserBO)HttpContext.Current.Session[IDMLUSER];
                }
                else
                {
                    return null;
                }
            }

            set
            {
                HttpContext.Current.Session[IDMLUSER] = value;
            }

        }
       
    
    }
}